import Page from '@/page'
export default [
  // 无tabber 页面
  {
    path: '/page',
    meta: {
      title: 'page',
      keepAlive: true
    },
    beforeEnter: (to, from, next) => {
      // 主要判断from.path
      next()
    },
    component: Page,
    children: [
      // 魔法注释勿删 ⬇️
      /** plop view page router **/
      {
        path: 'jtRegister',
        name: 'jtRegister',
        meta: {
          title: '账号注册',
          keepAlive: true,
          customNav: false
        },
        component: () => import(/* webpackChunkName: "jtRegister" */ '../views/jtRegister/index.vue')
      },
      {
        path: 'jtLogin',
        name: 'jtLogin',
        meta: {
          title: '登录',
          keepAlive: true,
          customNav: false
        },
        component: () => import(/* webpackChunkName: "jtLogin" */ '../views/jtLogin/index.vue')
      },
      {
        path: 'transition',
        name: 'transition',
        meta: {
          title: 'transition',
          keepAlive: true
        },
        component: () => import(/* webpackChunkName: "echarts" */ '../views/transition/index.vue')
      },
      {
        path: 'betterScroll',
        name: 'betterScroll',
        meta: {
          title: 'betterScroll',
          keepAlive: true
        },
        component: () => import(/* webpackChunkName: "betterScroll" */ '../views/betterScroll/index.vue')
      },
      {
        path: 'echarts',
        name: 'echarts',
        meta: {
          title: '图表',
          keepAlive: true
        },
        component: () => import(/* webpackChunkName: "echarts" */ '../views/echarts/index.vue')
      },
      {
        path: 'changeTheme',
        name: 'changeTheme',
        meta: {
          title: '主题',
          keepAlive: true
        },
        component: () => import(/* webpackChunkName: "changeTheme" */ '../views/changeTheme/index.vue')
      },
      {
        path: 'lang',
        name: 'lang',
        meta: {
          title: '语言',
          keepAlive: true
        },
        component: () => import(/* webpackChunkName: "lang" */ '../views/lang/index.vue')
      },
      {
        path: 'echarts',
        name: 'echarts',
        meta: {
          title: '图片',
          keepAlive: false
        },
        component: () => import(/* webpackChunkName: "echarts" */ '../views/echarts/index.vue')
      },

      {
        path: 'login',
        name: 'login',
        meta: {
          title: '登录',
          keepAlive: true
        },
        component: () =>
          import(/* webpackChunkName: "login" */ '../views/login/index.vue')
      }, {
        path: 'calendar',
        name: 'calendar',
        meta: {
          title: '日历',
          keepAlive: true
        },
        component: () =>
          import(/* webpackChunkName: "login" */ '../components/common/calendar')
      }, {
        path: 'countup',
        name: 'countup',
        meta: {
          title: '滚动数字',
          keepAlive: true
        },
        component: () =>
          import(/* webpackChunkName: "login" */ '../components/common/countup')
      }
    ]
  }
]
